package com.system.appointment.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @InterfaceName: RegistrationPoolListServiceFeign
 * @description: TODO 类描述
 * @author: Li Chuanwei
 * @date: 2023/12/10 14:46
 **/
@FeignClient(value = "registrationPool-service", path = "/registrationPoolList")
public interface RegistrationPoolListServiceFeign {
    @PostMapping("/{id}/lock-number")
    boolean lockNumber(@PathVariable("id") Integer poolListId);

    @PostMapping("/{id}/release-number")
    boolean releaseNumber(@PathVariable("id") Integer poolListId);

    @GetMapping("/getTime/{id}")
    String getTime(@PathVariable("id") Integer poolListId);

    @GetMapping("/getArrangementId/{id}")
    Integer getArrangementId(@PathVariable("id") Integer poolListId);
}
